aggregation expands elements and sums each element group